package fischl.douyuApi;

import fischl.douyuApi.model.*;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

// douyu api接口
public interface DouyuApi {

  /**
   * 获取弹幕分片
   * @param hashId
   * @param start_time
   * @return
   */
  @GET("getBarrageList?end_time=-1")
  Call<Res<DanmuPage>> getDanmuList(@Query("vid") String hashId, @Query("start_time") String start_time);

  @GET("getShowReplayList?vid=%s&up_id=%s")
  Call<Res<VideoDateData>> getVideoSlices(@Query("vid") String hashId, @Query("up_id") String upId);

  @GET("authorShowVideoList?page=1&limit=3")
  Call<Res<VideoPList>> getLastVideo(@Query("up_id") String upId);
}
